<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Pages'); ?></div>
    <h2>Pages</h2>
    <p>In general, Pages are very similar to Posts in that they both have Titles and Content. You can use Pages to present timeless information about yourself or your site, organize and manage any content such as "About," "Contact," etc</p>
    <div class="entry">
        <div class="sep"></div>
    </div>
    <table>
        <thead>
            <tr>
            	<th scope="col" class="chb"><input type="checkbox" onclick="selectAll(this);"></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Title');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Author');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Categories');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Date');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Status');?></th>
            </tr>
        </thead>
            
        <tbody>
        
         <?php if(!empty($arrPosts)):?>
			<?php foreach($arrPosts as $i=>$R):?>
            <tr>
                <td class="align-center"><input type="checkbox" name="id[]" value="<?php echo $R['post_id']; ?>"></td>
                <td>
                	<strong><a href="<?php echo LINK_ADMINCP_POSTS.'/form/page/?id='.$R['post_id']; ?>" style="text-decoration:none;"><?php echo $R['post_title']; ?></a></strong>
                    <p style="margin:0; padding: 2px 0 0;">
                        <a href="<?php echo LINK_ADMINCP_POSTS.'/form/page/?id='.$R['post_id']; ?>"  title="Edit">Edit</a> | 
                        <a href="<?php echo LINK_ADMINCP_POSTS.'/delete/?id='.$R['post_id']; ?>" title="Delete">Delete</a> 
                    </p>
                </td>
                <td><?php echo $R['post_creator_username']; ?></td>
                <td></td>
                <td><?php echo $R['post_created_date']; ?></td>
                <td><?php echo $arrPostStatus[$R['post_status']]; ?></td>
            </tr>
            <?php endforeach; ?>
		<?php else: ?>
            <tr>
                <td colspan="7">No data found!</td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
    <div class="entry">
        <?php $this->widget('Pagination', array(
			'pages' => $objPages,
		)) ?>
        <div class="sep"></div>		
        <a class="button add" href="<?php echo LINK_ADMINCP_POSTS.'/form/page'; ?>"><?php echo Yii::t('AdmincpModule.admincp', 'Add Page'); ?></a>
    </div>
</div>